home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 10 - 1994 / 10.10 Oct 94 / Sprocket / AppSpecific / DocWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-25  |  1.2 KB  |  58 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        DocWindow.h
  3.  
  4.     Contains:    A simple document window
  5.                 
  6.     Written by: Dave Falkenburg
  7.     
  8.     Copyright:    © 1993-94 by Dave Falkenburg, all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.      
  12.  */
  13.  
  14. #ifndef        _DOCWINDOW_
  15. #define        _DOCWINDOW_
  16.  
  17. #ifndef        _WINDOW_
  18. #include    "Window.h"
  19. #endif
  20.  
  21. #ifndef        __THREADS__
  22. #include    <Threads.h>
  23. #endif
  24.  
  25. class    TDocWindow    :    public TWindow
  26.     {
  27. public:
  28.                             TDocWindow();
  29.     virtual                 ~TDocWindow();
  30.  
  31.     virtual WindowPtr        MakeNewWindow(WindowPtr behindWindow);
  32.  
  33.     virtual    void            AdjustCursor(EventRecord * anEvent);
  34.  
  35.     virtual void            Activate(Boolean activating);
  36.     virtual void            Draw(void);
  37.     virtual void            Click(EventRecord * anEvent);
  38.  
  39.     virtual void            AdjustForNewWindowSize(Rect * oldRect,Rect * newRect);
  40.  
  41.     virtual    Boolean            Close(void);
  42.     
  43.     virtual    OSErr            DragEnterWindow(DragReference theDrag);
  44.     virtual    OSErr            DragInWindow(DragReference theDrag);
  45.     virtual    OSErr            DragLeaveWindow(DragReference theDrag);
  46.     virtual    OSErr            HandleDrop(DragReference theDrag);
  47.  
  48. protected:
  49.     static    unsigned long    fgUntitledTagCount;
  50.     ThreadID                fSpinnerThreadID;
  51.     short                    fCurrentSpinningArrowIconID;
  52.  
  53. public:
  54.     virtual void            SpinHeaderArrows();
  55.     };
  56.  
  57. #endif
  58.